<script setup lang="ts">
import { ref } from 'vue'
import request from './api'
import { casLogout } from './utils/cas'

let res = ref('')

const onClick = async () => {
  res.value = await request.get('/test')
}
</script>

<template>
  <h1>CAS Demo</h1>
  <button @click="onClick">发送后端请求</button>
  <p>请求结果：{{ res }}</p>

  <button @click="casLogout">退出登录</button>
</template>

<style scoped></style>
